unbind-key C-b
set-option -g prefix C-s
bind-key C-s send-prefix
set-option -g prefix2 `

set-window-option -g mode-keys vi

set -g base-index 1

setw -g monitor-activity on

set-option -g status-left "#[bg=#FF661D]  #S "
set-option -g status-right '"#{=21:pane_title}" #(tmux-mem-cpu-load) %H:%M %d-%b-%y'
set -g status-left-length 300
set -g status-right-length 500

set -wg window-status-format " #I #W "
set -wg window-status-current-format " #I:#W#F "
set -wg window-status-separator "  "
set -wg window-status-current-style "bg=red"
set -wg window-status-last-style "fg=red"
set -g message-style "bg=#202529, fg=#91A8BA"

set -g default-terminal "xterm-256color"


setw -g automatic-rename off
setw -g allow-rename off

bind-key v split-window -v
bind-key h split-window -h

bind-key r source-file ~/.tmux.conf

setw -g xterm-keys on
set-option -g mouse on
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R

bind-key -n S-Left select-window -t :-
bind-key -n S-Right select-window -t :+

bind-key -n C-k clear-history

set -g history-limit 100000

bind-key S capture-pane -b temp-capture-buffer -S - \; save-buffer -b temp-capture-buffer ~/tmux.log \; delete-buffer -b capture-buffer
bind-key C clear-history
set-window-option -g window-status-current-format "#P: #{pane_current_command}*"
set-window-option -g window-status-format "#P: #{pane_current_command}"